<template>
	<view class="banner" > 
		<u-swiper name="image_url" @click="jumpPage" @change="changeBanner" :height="300" :list="bannerList"></u-swiper>
	</view>
</template>

<script>
	export default {
		props: ["bannerList"],
		data() { 
			return {
				
			}
		},
		methods: { 
			jumpPage(index){
				uni.navigateTo({
					url:this.bannerList[index].link,
				})
			},
			changeBanner(index){
				this.$emit("changeBgColor",this.bannerList[index].bg_color)
			}
		}
	}
</script>

<style>
</style>
